package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

/**
 * 手术表信息
 * @author chenxingqing
 */
@Data
@FieldNameConstants
@TableName("b_surgical")
@ApiModel(value="Surgical对象", description="手术表信息")
public class SurgicalEntity extends Model<SurgicalEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手术信息表")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "患者姓名")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty(value = "住院号")
    @TableField("inpat_no")
    private String inpatNo;

    @ApiModelProperty(value = "患者性别{0为女生，1为男生}")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "患者年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "病人所在科室id")
    @TableField("department_id")
    private String departmentId;

    @ApiModelProperty(value = "病人所在科室名称")
    @TableField("department_name")
    private String departmentName;

    @ApiModelProperty(value = "床号")
    @TableField("bed_code")
    private String bedCode;

    @ApiModelProperty(value = "诊断")
    @TableField("diagnosis")
    private String diagnosis;

    @ApiModelProperty(value = "手术id")
    @TableField("surgical_id")
    private String surgicalId;

    @ApiModelProperty(value = "手术名称")
    @TableField("surgical_name")
    private String surgicalName;

    @ApiModelProperty(value = "执刀时间")
    @TableField("operate_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date operateTime;

    @ApiModelProperty(value = "主刀医生姓名")
    @TableField("master_doctor_name")
    private String masterDoctorName;

    @ApiModelProperty(value = "一助姓名")
    @TableField("assistant_first_name")
    private String assistantFirstName;

    @ApiModelProperty(value = "二助姓名")
    @TableField("assistant_second_name")
    private String assistantSecondName;

    @ApiModelProperty(value = "三助姓名")
    @TableField("assistant_third_name")
    private String assistantThirdName;

    @ApiModelProperty(value = "参观者")
    @TableField("visitor")
    private String visitor;

    @ApiModelProperty(value = "麻醉方式")
    @TableField("anaesthesia_type")
    private String anaesthesiaType;

    @ApiModelProperty(value = "麻醉医生")
    @TableField("anaesthesia_doctor")
    private String anaesthesiaDoctor;

    @ApiModelProperty(value = "部位")
    @TableField("part")
    private String part;

    @ApiModelProperty(value = "体位")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "医保类型")
    @TableField("medical_insurance_type")
    private String medicalInsuranceType;

    @ApiModelProperty(value = "手术状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "排班状态  0  = 未排班 1 = 已排班")
    @TableField("scheduling_status")
    private Integer schedulingStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    @TableField("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
